#ifndef __Condition_H__
#define __Condition_H__
#include <pthread.h>

namespace wd
{

class MutexLock;//类的前向声明

class Condition
{
public:
    Condition(MutexLock &);
    ~Condition();

    void wait();
    void notify();
    void notifyAll();

private:
    pthread_cond_t _cond;
    MutexLock & _mutex;//在类中占据一个指针的大小
};


}//end of namespace wd


#endif

